package cn.tedu.spring.eg2;

import cn.tedu.spring.eg1.Product;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;

public class TestMapper {
    public static void main(String[] args) {
        ApplicationContext ac = new
                AnnotationConfigApplicationContext("cn.tedu.spring.eg2");
        Mapper product = ac.getBean(Mapper.class);
        System.out.println(product);
    }


}
